package com.zhonghui.mes.domain.vo;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zhonghui.common.annotation.Excel;
import com.zhonghui.common.core.domain.BaseEntity;

/**
 * 制造执行MES-生产完工单对象 mes_production_completion
 *
 * @author zhonghui
 * @date 2024-11-12
 */

public class MesProductionCompletionVo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 单号 */
    @Excel(name = "单号")
    private String oddNumbers;

    /** 生产计划 */
    @Excel(name = "生产计划")
    private String name;

    /** 生产作业id */
    @Excel(name = "生产作业id")
    private Long jobId;

    /** 生产作业 */
    @Excel(name = "生产作业")
    private String jobName;

    /** 产品id */
    @Excel(name = "产品id")
    private Long materialId;

    /** 产品 */
    @Excel(name = "产品")
    private String materialName;

    /** 型号 */
    @Excel(name = "型号")
    private String materialModel;

    /** 规格 */
    @Excel(name = "规格")
    private String materialSpecifications;

    /** 单位 */
    @Excel(name = "单位")
    private String materialUnit;

    /** 完工日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "完工日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date completionDate;

    /** 生产数量 */
    @Excel(name = "生产数量")
    private Long quantity;

    /** 生产批号 */
    @Excel(name = "生产批号")
    private String batchNumber;

    /** 状态 0-未入库 1-入库中 2-已入库 3-检验合格 4-检验未合格 */
    @Excel(name = "状态")
    private Long status;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setOddNumbers(String oddNumbers)
    {
        this.oddNumbers = oddNumbers;
    }

    public String getOddNumbers()
    {
        return oddNumbers;
    }
    public void setJobId(Long jobId)
    {
        this.jobId = jobId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getJobName() {
        return jobName;
    }

    public void setJobName(String jobName) {
        this.jobName = jobName;
    }

    public String getMaterialName() {
        return materialName;
    }

    public void setMaterialName(String materialName) {
        this.materialName = materialName;
    }

    public String getMaterialModel() {
        return materialModel;
    }

    public void setMaterialModel(String materialModel) {
        this.materialModel = materialModel;
    }

    public String getMaterialSpecifications() {
        return materialSpecifications;
    }

    public void setMaterialSpecifications(String materialSpecifications) {
        this.materialSpecifications = materialSpecifications;
    }

    public String getMaterialUnit() {
        return materialUnit;
    }

    public void setMaterialUnit(String materialUnit) {
        this.materialUnit = materialUnit;
    }

    public Long getJobId()
    {
        return jobId;
    }
    public void setMaterialId(Long materialId)
    {
        this.materialId = materialId;
    }

    public Long getMaterialId()
    {
        return materialId;
    }
    public void setCompletionDate(Date completionDate)
    {
        this.completionDate = completionDate;
    }

    public Date getCompletionDate()
    {
        return completionDate;
    }
    public void setQuantity(Long quantity)
    {
        this.quantity = quantity;
    }

    public Long getQuantity()
    {
        return quantity;
    }
    public void setBatchNumber(String batchNumber)
    {
        this.batchNumber = batchNumber;
    }

    public String getBatchNumber()
    {
        return batchNumber;
    }
    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("oddNumbers", getOddNumbers())
                .append("name", getName())
                .append("jobId", getJobId())
                .append("jobName", getJobName())
                .append("materialId", getMaterialId())
                .append("materialName", getMaterialName())
                .append("materialModel", getMaterialModel())
                .append("materialSpecifications", getMaterialSpecifications())
                .append("materialUnit", getMaterialUnit())
                .append("completionDate", getCompletionDate())
                .append("quantity", getQuantity())
                .append("batchNumber", getBatchNumber())
                .append("status", getStatus())
                .append("remark", getRemark())
                .toString();
    }
}

